<template>
  <div class="public_list">
    <div>
      <p>{{items.title}}</p>
      <div>
        <div>
          <img src="@/assets/images/home/list_icon.png" alt="" />
          <span>{{items.symptom}}</span>
        </div>
        <div>{{items.pageviews}}阅读</div>
      </div>
    </div>
    <div>
      <img :src="items.images" alt="" />
    </div>
  </div>
</template>

<script>
export default {
    props:{
      items:{
        type:Object,
        required:true,
      },
    },
    data() {
        return {
            
        }
    },
};
</script>

<style lang="scss" scoped>
.public_list {
  margin-top: 3vw;
  width: 100%;
  height: 15vh;
  display: flex;
  border-bottom: 1px solid rgb(168, 168, 168);
  div {
    &:nth-child(1) {
      flex: 2;
      letter-spacing: 0.5vw;
      font-family: "斜体";
      position: relative;
      font-size: 0.8rem;
      > p {
        padding-right: 1.5vw;
      }
      > div {
        width: 100%;
        display: flex;
        position: absolute;
        bottom: 3vh;
        > div {
          width: 10vw;
          height: 2vh;
          position: relative;
          > img {
            width: 15px;
            display: block;
            position: absolute;
            top: 70%;
          }
          > span {
            display: block;
            margin-left: 18px;
            color: #02dcbc;
          }
        }
      }
    }
    &:nth-child(2) {
      flex: 1;
      position: relative;
      img {
        display: block;
        width: 100%;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
      }
    }
  }
}
</style>
